package com.iengoo.edu.service;

import com.iengoo.edu.entity.Ticket;

import java.util.List;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-01-22 16:31
 */
public interface TicketService {
    /**
     * 1. 2. 3. 4. 5查询所有的车票信息
     */
    void add(Ticket ticket);

    void delete(int id);

    void update(Ticket ticket);

    Ticket findById(int id);
    /**
     * 查询所有车票信息
     */
    List<Ticket> findAll();
}
